#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void init(int a[],int n)
{
	for (int i = 0; i <n;i++)
	{
		a[i] = 0;
	}
}
void print(int a[],int n)
{
	for (int i = 0; i < n;i++)
	{
		printf("%d", a[i]);

	}
}
void reverse(int a[],int n)
{
		int left = 0;
		int right = n - 1;
		while (left <= right)
		{
			int item = a[left];
			a[left] = a[right];
			a[right] = item;
			left++;
			right--;
		}
	for (int i = 0; i < n;i++)
	{
		printf("%d", a[i]);

	}
}
int main()
{
	int a[10] = { 8,6,5,4,9,7,2,1,3,0 };
		/*init(a,10);*/

		/*print(a,10);*/
		reverse(a,10);
}